package com.daka.util;


/**
 * http错误枚举
 *
 */
public enum HttpEnum {
    ZERO("0","0返回超时，请重试..."),
    ONE("1","1请求失败，无应答..."),
    TWO("2","2连接请求失败,请检查网络并重试..."),
    FOUR_ZERO_FOUR("404","404 URL错误,服务器响应处理异常"),
    FOUR_ZERO_ZERO("400","400请求无效"),
    FIVE_ZERO_ZERO("500","500服务器响应处理异常"),
    FIVE_ZERO_TWO("502","502失败，服务器响应处理异常"),
    FIVE_ZERO_THREE("503","503服务器当前无法处理");

    private final String state;
    private final String message;

    HttpEnum(String state, String message) {
        this.state = state;
        this.message = message;
    }

    public String getState() {
        return state;
    }

    public String getMessage() {
        return message;
    }
}
